Calendar Heatmaps
Source code can be obtained here
We’ll use an attacker data with 200,000 “events”. It has the timestamp, and the source_country ISO 3166-1 alpha-2 country code (which is the source of the attack) plus the tz time zone of the source IP address. Let’s have a look:
library(DT)
library(dplyr)
library(scales)
library(viridis)
library(ggplot2)
library(ggthemes)
library(gridExtra)
library(lubridate)
library(data.table)
setwd('/Users/ethen/Business-Analytics/articles/calendar_heatmaps')
attacks <- fread("data/eventlog.csv")
DT::datatable(attacks)